﻿namespace ApiTemplate.Entity.DataTable
{
    /// <summary>
    /// 调度任务表
    /// </summary>
    [SugarTable("system_SchedulerTask")]
    public class SchedulerTask : Base.BaseGuidEntity
    {
        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// http请求类型：0：httpget ；1httpPost
        /// </summary>
        public int RequsetType { get; set; }

        /// <summary>
        /// 请求的url
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// POST请求的参数，json字符串
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string Parameter { get; set; }

        /// <summary>
        /// 定时执行表达式
        /// </summary>
        public string CronStr { get; set; }

        /// <summary>
        /// 当前状态 0：正常；1：暂停
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 上次执行时间
        /// </summary>
        public DateTime LastExecTime { get; set; }
    }
}
